package com.jieyang.oa.dao;

import com.github.pagehelper.PageInfo;
import com.jieyang.oa.pojo.Vo.AuditVo;
import com.jieyang.oa.pojo.entity.Duty;
import com.jieyang.oa.pojo.entity.Expense;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExpenseDao {

    Integer insert(Expense expense);

    List<AuditVo> selectByAudit(String nextAuditor);

    Expense selectByExpId(Long expId);

    Integer updateAudit(@Param("expId") Long expId, @Param("nextAuditor") String nextAuditor);

    Integer updateStatus(@Param("expId") Long expId, @Param("status") String status);

    List<Expense> selectByEmpId(String empId);

    Integer count(String empId);
}
